<%--
  Created by IntelliJ IDEA.
  User: 23050
  Date: 2023/9/19
  Time: 7:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"
    pageEncoding="UTF-8" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <%
    int num = 10;
    pageContext.setAttribute("name1","zy1");
    request.setAttribute("name2","zy2");
    session.setAttribute("name3","zy3");
    application.setAttribute("name4","zy4");
  %>
  <%=num%>
  <%=pageContext.getAttribute("name1")%>
  ---------------------------------------
  ${num}
  <br>
<%--  ${pageScope.name1}<br>--%>
<%--  ${requestScope.name2}<br>--%>
<%--  ${sessionScope.name3}<br>--%>
<%--  ${applicationScope.name4}<br>--%>
  ${name1}


  <br>
  <a href="par.jsp?age=20">age</a>




  </body>
</html>














